package com.ccys.doctor.controller;

import com.ccys.common.vo.ResponseResultApp;
import com.ccys.db.vo.doctor.clinic.GetAllClinicVo;
import com.ccys.doctor.service.ClinicService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: WhiteCoat
 * @description: 诊所相关接口
 * @author: ZhangJingCan
 * @create: 2024-02-08 16:24
 **/

@RestController
@Api(tags = "诊所相关接口")
@RequestMapping("clinic")
public class ClinicController {

    @Autowired
    private ClinicService clinicService;

    @ApiOperation("查询所有诊所(当前医生所在公司的)")
    @GetMapping(value = "/GetAllClinic")
    public ResponseResultApp<List<GetAllClinicVo>> getAllClinic() {
        return clinicService.getAllClinic();
    }

}
